package com.albaba.designpattern.factory.text_002.service.impl;

import com.albaba.designpattern.factory.text_001.entity.AwardInfo;
import com.albaba.designpattern.factory.text_001.entity.DiscountResult;
import com.albaba.designpattern.factory.text_002.entity.ResponseResult;
import com.albaba.designpattern.factory.text_002.service.IFreeGoods;

/**
 * @Description: 打折券服务
 * @Author zx
 * @Date 2025/2/19 10:39
 * @Version 1.0
 */
public class DiscountFreeGoodServiceImpl implements IFreeGoods {

    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {

        System.out.println("向用户发送一张打折券：" + awardInfo.getUid() + "," + awardInfo.getAwardNumber());

        return new ResponseResult("200", "发放打折券成功", null);
    }
}
